﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="ConsultarCliente.aspx.cs" Inherits="AcademiaInteligenteWeb.ConsultarCliente" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Consultar Clientes
    </h1>
    <div id="formulario">
        <table>
            <tr>
                <td>Pesquisa por: </td>
                <td>
                    <asp:DropDownList ID="DropDownCliente" runat="server" >
                        <asp:ListItem> </asp:ListItem>
                        <asp:ListItem Selected="True" Value="codigo">Codigo</asp:ListItem>
                        <asp:ListItem Value="nome">Nome</asp:ListItem>
                        <asp:ListItem Value="cpf">CPF</asp:ListItem>
                        <asp:ListItem Value="sexo">Sexo</asp:ListItem>
                        <asp:ListItem Value="cep">CEP</asp:ListItem>                        
                        <asp:ListItem Value="bairro">Bairro</asp:ListItem>
                        <asp:ListItem Value="cidade">Cidade</asp:ListItem>
                        <asp:ListItem Value="estado">Estado</asp:ListItem>
                        <asp:ListItem Value="login">Login</asp:ListItem>                        
                        <asp:ListItem Value="data_inclusao">Data de Inclusão</asp:ListItem>                        
                    </asp:DropDownList>
                </td>
                
                <td>=</td>
                <td>
                    <asp:TextBox runat="server" ID="txtPesquisa" Width="237px" />
                </td>

                <td colspan="4" style="text-align:right;">
                    <asp:Button ID="btnConsultar" Text="Consultar" runat="server" OnClick="btnConsultar_Click" />
                </td>

            </tr>            
            </table>
    </div>
    <div id="dados">
       <asp:GridView ID="grdConsultarCliente" runat="server" AutoGenerateColumns="false" AllowPaging="true">
           <AlternatingRowStyle CssClass="alterningRow" />
           <SelectedRowStyle CssClass="selectedRow" />
           <Columns>
               <asp:BoundField DataField="Nome" HeaderText="Nome" />
               <asp:BoundField DataField="CPF" HeaderText="CPF" />
               <asp:BoundField DataField="Sexo" HeaderText="Sexo" />
               <asp:BoundField DataField="CEP" HeaderText="CEP" />
               <asp:BoundField DataField="Bairro" HeaderText="Bairro" />
               <asp:BoundField DataField="Login" HeaderText="Login" />               
           </Columns>
      </asp:GridView >
    </div>
           
</asp:Content>
